import http from "../../utility/request.js";

const baseUrl = "http://47.109.157.141:8449/front"; // 轻松睡眠后台服务
// const baseUrl = process.env.NODE_ENV === "development" ? "https://tpost.relaverse.cn/qsxz/sleep" : "https://tpost.relaverse.cn/qsxz/sleep"; // 轻松睡眠后台服务

/**
 * 戒指关联的用户信息
 * @returns
 */
export const getUserInfo = () =>
	http.get(`/rgUser/userInfo`, {
		baseUrl,
	});

	/**
	 * 新实名认证
	 * @param {*} data
	 * @returns
	 */
export const verifyRealName = (data) =>
	http.post("/rgUser/verifyUserRealName", {
		baseUrl,
		data,
	});
